3.3.89 \(\int \sec (c+d x) \sqrt {a+i a \tan (c+d x)} \, dx\) [289]

Optimal. Leaf size=31 \[ \frac {2 i a \sec (c+d x)}{d \sqrt {a+i a \tan (c+d x)}} \]

[Out]

2*I*a*sec(d*x+c)/d/(a+I*a*tan(d*x+c))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.042, Rules used = {3574} \begin {gather*} \frac {2 i a \sec (c+d x)}{d \sqrt {a+i a \tan (c+d x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sec[c + d*x]*Sqrt[a + I*a*Tan[c + d*x]],x]

[Out]

((2*I)*a*Sec[c + d*x])/(d*Sqrt[a + I*a*Tan[c + d*x]])

Rule 3574

Int[((d_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[2*b*(
d*Sec[e + f*x])^m*((a + b*Tan[e + f*x])^(n - 1)/(f*m)), x] /; FreeQ[{a, b, d, e, f, m, n}, x] && EqQ[a^2 + b^2
, 0] && EqQ[Simplify[m/2 + n - 1], 0]

Rubi steps

\begin {align*} \int \sec (c+d x) \sqrt {a+i a \tan (c+d x)} \, dx &=\frac {2 i a \sec (c+d x)}{d \sqrt {a+i a \tan (c+d x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.21, size = 39, normalized size = 1.26 \begin {gather*} \frac {2 (i \cos (c+d x)+\sin (c+d x)) \sqrt {a+i a \tan (c+d x)}}{d} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sec[c + d*x]*Sqrt[a + I*a*Tan[c + d*x]],x]

[Out]

(2*(I*Cos[c + d*x] + Sin[c + d*x])*Sqrt[a + I*a*Tan[c + d*x]])/d

________________________________________________________________________________________

Maple [A]
time = 0.58, size = 50, normalized size = 1.61

method result size
default \(\frac {2 \left (i \cos \left (d x +c \right )+\sin \left (d x +c \right )\right ) \sqrt {\frac {a \left (i \sin \left (d x +c \right )+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}}{d}\) \(50\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(d*x+c)*(a+I*a*tan(d*x+c))^(1/2),x,method=_RETURNVERBOSE)

[Out]

2/d*(I*cos(d*x+c)+sin(d*x+c))*(a*(I*sin(d*x+c)+cos(d*x+c))/cos(d*x+c))^(1/2)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)*(a+I*a*tan(d*x+c))^(1/2),x, algorithm="maxima")

[Out]

integrate(sqrt(I*a*tan(d*x + c) + a)*sec(d*x + c), x)

________________________________________________________________________________________

Fricas [A]
time = 0.37, size = 25, normalized size = 0.81 \begin {gather*} \frac {2 i \, \sqrt {2} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}}{d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)*(a+I*a*tan(d*x+c))^(1/2),x, algorithm="fricas")

[Out]

2*I*sqrt(2)*sqrt(a/(e^(2*I*d*x + 2*I*c) + 1))/d

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {i a \left (\tan {\left (c + d x \right )} - i\right )} \sec {\left (c + d x \right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)*(a+I*a*tan(d*x+c))**(1/2),x)

[Out]

Integral(sqrt(I*a*(tan(c + d*x) - I))*sec(c + d*x), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)*(a+I*a*tan(d*x+c))^(1/2),x, algorithm="giac")

[Out]

integrate(sqrt(I*a*tan(d*x + c) + a)*sec(d*x + c), x)

________________________________________________________________________________________

Mupad [B]
time = 0.35, size = 61, normalized size = 1.97 \begin {gather*} \frac {2\,\left (\sin \left (c+d\,x\right )+\cos \left (c+d\,x\right )\,1{}\mathrm {i}\right )\,\sqrt {\frac {a\,\left (\cos \left (2\,c+2\,d\,x\right )+1+\sin \left (2\,c+2\,d\,x\right )\,1{}\mathrm {i}\right )}{\cos \left (2\,c+2\,d\,x\right )+1}}}{d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + a*tan(c + d*x)*1i)^(1/2)/cos(c + d*x),x)

[Out]

(2*(cos(c + d*x)*1i + sin(c + d*x))*((a*(cos(2*c + 2*d*x) + sin(2*c + 2*d*x)*1i + 1))/(cos(2*c + 2*d*x) + 1))^
(1/2))/d

________________________________________________________________________________________